#ifndef PLANEMANAGER_H_H_H_H_
#define PLANEMANAGER_H_H_H_H_

#include <map>
#include <vector>

class Plane;
class planeManager
{
public:
	planeManager(void);
	~planeManager(void);
public:
	void InitPlanes(int num,CKContext* context);

	Plane*  createPlane(const char* pn,CKContext* context);	

	Plane* getPlaneByName(const char*);

	static planeManager& Instance();

	void  updataPlane();

	

	void setActivePlane(Plane* p);

	void save();

	void load();



public:
	std::map<std::string,Plane*> _plantList;
	static planeManager* pm;

	std::vector<Plane*> updataList;

	Plane*  activePlane;

	int planeIndex;
};
#endif
